how to remove space between string in c#

97

how to remove space between string in c# -

string str = "C Sharp";
str = Regex.Replace(str, @"\s", "");

Comments

Submit
0 Comments